package com.beiben.quality.mapper;

import java.util.List;
import com.beiben.quality.domain.QaQualityInfo;
import org.apache.ibatis.annotations.Param;

/**
 * 质量信息Mapper接口
 * 
 * @author gx
 * @date 2021-03-08
 */
public interface QaQualityInfoMapper 
{
    /**
     * 查询质量信息
     * 
     * @param qualityId 质量信息ID
     * @return 质量信息
     */
    public QaQualityInfo selectQaQualityInfoById(Long qualityId);

    /**
     * 查询质量信息列表
     * 
     * @param qaQualityInfo 质量信息
     * @return 质量信息集合
     */
    public List<QaQualityInfo> selectQaQualityInfoList(QaQualityInfo qaQualityInfo);

    /**
     * 新增质量信息
     * 
     * @param qaQualityInfo 质量信息
     * @return 结果
     */
    public int insertQaQualityInfo(QaQualityInfo qaQualityInfo);

    /**
     * 修改质量信息
     * 
     * @param qaQualityInfo 质量信息
     * @return 结果
     */
    public int updateQaQualityInfo(QaQualityInfo qaQualityInfo);

    /**
     * 删除质量信息
     * 
     * @param qualityId 质量信息ID
     * @return 结果
     */
    public int deleteQaQualityInfoById(Long qualityId);

    /**
     * 批量删除质量信息
     * 
     * @param qualityIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteQaQualityInfoByIds(Long[] qualityIds);

    void insertQualityGroups(@Param("qualityId") Long qualityId, @Param("groups") List<String> groups);

    void insertQualityGroupsByImport(@Param("qualityId") Long qualityId, @Param("groups") String[] groups );

    void deleteQualityGroupsByQualityId(@Param("qualityId") Long qualityId);
    //void deleteQualityGroupsByQualityIds(@Param("qualityIds") Long[] qualityId);
    public int deleteQualityGroupsByQualityIds(Long[] qualityIds);


    /**
     * qualityId
     *
     * @param qualityId 数据ID
     * @return 结果
     */
    List<String> selectQaQualityInfoByQualityId(Long qualityId);
}
